import request from '@/utils/request'

// 查询部门管理列表
export function listDepartmentManage(query) {
  return request({
    url: '/t06/t06/listProcess',
    method: 'get',
    params: query
  })
}

// 查询部门管理详细
export function getDepartmentManage(F0501) {
  return request({
    url: '/departmentManage/departmentManage/' + F0501,
    method: 'get'
  })
}

// 新增部门管理
export function addDepartmentManage(data) {
  return request({
    url: '/departmentManage/departmentManage',
    method: 'post',
    data: data
  })
}

// 修改部门管理
export function updateDepartmentManage(data) {
  return request({
    url: '/departmentManage/departmentManage',
    method: 'put',
    data: data
  })
}

// 删除部门管理
export function delDepartmentManage(F0501) {
  return request({
    url: '/departmentManage/departmentManage/' + F0501,
    method: 'delete'
  })
}

//审批
export function approveManage(data) {
  return request({
    url: '/t06/t06/updatePersion',
    method: 'post',
    data: data
  })
}
